cmake_minimum_required(VERSION 3.12)

project(main C CXX)

add_executable(${PROJECT_NAME} main.cpp)
target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/sub)

add_subdirectory(sub)
target_link_libraries(${PROJECT_NAME} sub)